fix: fix go to source file whose path contains $ symbol#450
Conversation
📝 WalkthroughWalkthroughThe PR stops escaping ChangesEditor path argument handling
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 48334ec
☁️ Nx Cloud last updated this comment at |
More templates
@tanstack/angular-devtools
@tanstack/devtools
@tanstack/devtools-a11y
@tanstack/devtools-client
@tanstack/devtools-ui
@tanstack/devtools-utils
@tanstack/devtools-vite
@tanstack/devtools-event-bus
@tanstack/devtools-event-client
@tanstack/preact-devtools
@tanstack/react-devtools
@tanstack/solid-devtools
@tanstack/vue-devtools
commit: |
🎯 Changes
Fix
@tanstack/devtools-viteclick-to-code for source files whose paths contain$. The previous implementation escaped$before passing the path tolaunch-editorwhich turns a real path e.g.src/routes/$postId.tsxintosrc/routes/\$postId.tsx.launch-editorchecksfs.existsSync(fileName)before spawning the editor, so the escaped path fails existence checks.Verified locally by:
@tanstack/devtools-vite$...route files correctly in both VS Code and IntelliJI am not sure why this wasn't reported before since TanStack Router makes heavy use of
$in file path. I believe my fix is independent of OS and editor, please point out if the fix is wrong.✅ Checklist
pnpm test:pr.🚀 Release Impact
Summary by CodeRabbit